← Back to issue list

Swig isn't executed with snapcraft python plugin

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1648039
Type
issue
State
open
Author
~didrocks
Labels
Created
2016-12-07 10:33:05.602872+00:00
Updated
2016-12-07 11:42:31.260948+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

1. Use a project having a swift module: requirements.txt: https://github.com/didrocks/python-midi/archive/v0.2.3+2016.11.tar.gz 2. Use the python plugin in your snapcraft.yaml: parts: foo: source: . plugin: python python-version: python2 requirements: requirements.txt build-packages: [swig3.0] After snapcrafting this parts (not a cleanbuild, so swig is available on the system), you will notice that the .so file is compiled: parts/foo/install/lib/python2.7/site-packages/midi/sequencer/_sequencer_alsa.so But you don't have the binding generated by swift, "sequencer_alsa.py". On the same machine, I can create a virtualenv and then get the module compiles: $ virtualenv venv $ . venv/bin/active $ pip install --r requirements.txt -> venv/lib/python2.7/site-packages/midi/sequencer/sequencer_alsa.py was generated As a quick try, I tried removing "--no-compile" in pip_install() in the python plugin, without success. Nothing in the verbose pip outputs explains why swig isn't ran.

Evaluation history

No evaluation history available.